package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis  =new FileInputStream("./拉布拉多图片生成.png");
        FileOutputStream fos = new FileOutputStream("./拉布拉多图片生成_cp3.png");
        int len;
        long start = System.currentTimeMillis();
        while((len = fis.read()) != -1){
            fos.write(len);
        }
        long end = System.currentTimeMillis();
        System.out.println("复制完毕耗时："+(start-end)+"ms");
        fis.close();
        fos.close();
    }
}
